$(window).load(function () {
    $('#slider').nivoSlider({
        //controlNav: false,
        directionNav: false,
        effect: 'fade'
    });
});